童趣[儿].js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. var rule = {
  2. 类型: '影视',//影视|听书|漫画|小说
  3. title: '童趣[儿]',
  4. host: 'https://www.boosj.com',
  5. url: '/search_res_3362__fyclass_fypage_fyfilter',
  6. searchUrl: 'https://search.boosj.com/m_ajax?q=**&p=fypage&typeId=3362',
  7. searchable: 2,
  8. quickSearch: 0,
  9. filterable: 1,
  10. filter: '',
  11. filter_url: '{{fl.by}}.html{{fl.age}}',
  12. filter_def: {},
  13. headers: {
  14. 'User-Agent': 'MOBILE_UA',
  15. },
  16. timeout: 5000,
  17. class_parse: $js.toString(() => {
  18. let classes = [{type_id: '', type_name: '全部'}, {type_id: 28, type_name: '辅食'}, {
  19. type_id: 582,
  20. type_name: '动画'
  21. }, {type_id: 3364, type_name: '儿童舞蹈'}, {type_id: 3366, type_name: '少儿英语'}, {
  22. type_id: 3367,
  23. type_name: '儿童歌曲'
  24. }, {type_id: 3622, type_name: '才艺'}, {type_id: 3782, type_name: '播视自制'}, {
  25. type_id: 3822,
  26. type_name: '故事'
  27. }, {type_id: 3842, type_name: '亲子教育'}, {type_id: 4402, type_name: '美术'}, {
  28. type_id: 4583,
  29. type_name: '其他'
  30. }, {type_id: 4762, type_name: '儿童游戏'}, {type_id: 4842, type_name: '识物'}, {
  31. type_id: 4843,
  32. type_name: '绘本'
  33. }, {type_id: 4844, type_name: '古诗'}, {type_id: 4845, type_name: '科普'}, {
  34. type_id: 5102,
  35. type_name: '儿童玩具'
  36. }, {type_id: 5142, type_name: '播视童趣儿童玩具'}];
  37. homeObj.filter = {};
  38. let jsonData = [
  39. {
  40. key: 'age',
  41. name: '年龄段',
  42. value: [
  43. {n: '全部', v: ''},
  44. {n: '6岁以上', v: '?p367=370'},
  45. {n: '3~6岁', v: '?p367=369'},
  46. {n: '0~3岁', v: '?p367=368'},
  47. ],
  48. init: '',
  49. },
  50. {
  51. key: 'by',
  52. name: '排序',
  53. value: [
  54. {n: '全部', v: ''},
  55. {n: '最新发布', v: 'lately'},
  56. {n: '最多播放', v: 'pop'},
  57. {n: '最多评论', v: 'view'},
  58. ],
  59. init: '',
  60. },
  61. ];
  62. classes.forEach(it => {
  63. homeObj.filter[it.type_id] = jsonData;
  64. });
  65. input = classes
  66. }),
  67. cate_exclude: '',
  68. play_parse: true,
  69. lazy: $js.toString(() => {
  70. input = {
  71. parse: 1, url: input, js: "document.querySelector('video').play();",
  72. header: {
  73. 'User-Agent': PC_UA,
  74. }
  75. };
  76. }),
  77. 推荐: '',
  78. 一级: 'body div.bj-col4:has(h3);a&&title;img&&data-original;span.played&&Text;a&&href',
  79. 二级: '*',
  80. 搜索: 'json:body.result;resourceName;imageUrl;clickNumStr;playUrl',
  81. }